package org.jeecg.modules.monitoring.j_monitoring.mapper;

import java.util.List;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.monitoring.j_monitoring.entity.MGlComputingResource;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
 * @Description: 计算资源(管理)
 * @Author: xiaoyq
 * @Date:   2023-01-08
 * @Version: V1.0
 */
public interface MGlComputingResourceMapper extends BaseMapper<MGlComputingResource> {

    /**
     * 计算资源分页查询
     * @param pagelist
     * @param queryWrapper
     * @return
     */
    Page<MGlComputingResource> getPageList(Page<MGlComputingResource> pagelist,@Param("ew") QueryWrapper queryWrapper);

    /**
     * 根据设备编号获得计算机资源列表
     * @param equipmentNo
     * @return
     */
    List<MGlComputingResource> selectByEquipmentNo(@Param("equipmentNo") String equipmentNo);

    int updateMonitorStatusByIpList(@Param("monitorStatus") String monitorStatus, @Param("ipList") List<String> ipList);
}
